/*
 * SQLIndiceBursatilDAO.java
 *
 * Created on 31 de octubre de 2007, 16:42
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package webportlet.model.indiceBursatil.dao;

import java.sql.Connection;
import java.util.ArrayList;
import webportlet.model.indiceBursatil.dto.IndiceBursatilDTO;
import webportlet.model.util.InstanceNotFoundException;
import webportlet.model.util.*;

/**
 *
 * @author Administrador
 */
public interface SQLIndiceBursatilDAO {
    
    public IndiceBursatilDTO create(Connection connection, IndiceBursatilDTO indiceBursatilDTO)
    throws DuplicateInstanceException, InternalErrorException;
    public boolean exits(Connection connection, Long id) throws InternalErrorException;
    public IndiceBursatilDTO find(Connection connection, Long id)
     throws InstanceNotFoundException, InternalErrorException;
    public void update(Connection connection, IndiceBursatilDTO indiceBursatilDTO) 
        throws InstanceNotFoundException, InternalErrorException;
    public void remove(Connection connection, Long id)
         throws InstanceNotFoundException, InternalErrorException;
     public ArrayList <IndiceBursatilDTO> recuperarListaCompleta(Connection connection)
            throws InstanceNotFoundException, InternalErrorException;
     public ArrayList <IndiceBursatilDTO> recuperarLista(Connection connection, 
            ArrayList <Long> listaIdentificadores)
            throws InstanceNotFoundException, InternalErrorException;
    
   
}
